package com.ruibang.glass.equipment.feign;

import com.ruibang.glass.common.domain.produce.WorkshopDTO;
import com.teaming.cloud.framework2.common.model.ResultBody;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.*;


@FeignClient("glass-produce")
@Component
public interface ProduceApi {
    @PostMapping("/api/glass/produce/workshop/queryWorkshop")
    @ApiOperation(value = "查询厂房信息", notes = "查询厂房信息")
    ResultBody queryWorkshop(WorkshopDTO workshop);

    @RequestMapping(value = "/api/glass/produce/productLine/getProductLineList", method = RequestMethod.GET)
    @ApiOperation(value = "获取产线列表", notes = "获取产线列表")
    ResultBody getProductLineList(@RequestParam("id")String id);

    @RequestMapping(value = "/api/glass/produce/area/getByProductLineId/{id}", method = RequestMethod.GET)
    @ApiOperation(value = "根据产线获取区域", notes = "根据产线获取区域")
    ResultBody getByProductLineAreaId(@PathVariable("id") String id);


    @RequestMapping(value = "/api/glass/produce/device/getSelectList", method = RequestMethod.GET)
    @ApiOperation(value = "根据产线获取区域", notes = "根据产线获取区域")
    ResultBody getSelectList();

}
